import request from '@/utils/request'

// 分页获取推荐品牌
export const getRecommendBrandList = params => {
	return request({
		method: 'GET',
		url: '/brand/recommendList',
    params
	})
}

// 获取品牌详情
export const getBrandInfo= brandId => {
	return request({
		method: 'GET',
		url: `/brand/detail/${brandId}`
	})
}

// 分页获取品牌相关商品
export const getBrandProductList = params => {
	return request({
		method: 'GET',
		url: `/brand/productList`,
    params
	})
}

// 添加品牌关注
export const addAttention = data => {
	return request({
		method: 'POST',
		url: `/member/attention/add`,
    data
	})
}

// 清空当前用户品牌关注列表
export const clearAttention = () => {
	return request({
		method: 'POST',
		url: `/member/attention/clear`
	})
}

// 取消品牌关注
export const deleteAttention = params => {
	return request({
		method: 'POST',
		url: `/member/attention/delete`,
    params
	})
} 

// 显示品牌关注详情
export const getAttentionInfo = params => {
	return request({
		method: 'GET',
		url: `/member/attention/detail`,
    params
	})
} 

// 显示当前用户品牌关注列表
export const getAttentionList = params => {
	return request({
		method: 'GET',
		url: `/member/attention/list`,
    params
	})
} 

